package cn.bincker.mycaptcha.basic;

import cn.bincker.mycaptcha.basic.exception.CaptchaVerifyFailException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 验证失败处理器
 */
@FunctionalInterface
public interface VerifyFailHandler {
    void handle(HttpServletRequest request, HttpServletResponse response, CaptchaVerifyFailException exception) throws IOException;
}
